package com.yuuzy.dao;


import com.yuuzy.model.User;


public class UserDAO extends BasicDAO<User> {
    /**
     * 管理员登录
     *
     * @param user 用户实体
     * @return 查询到的用户实体
     */
    public User login(User user) {
        String sql = "select * from user where user_name = ? and user_password = ?";
        return querySingle(sql, User.class, user.getUser_name(), user.getUser_password());
    }
}
